package dhy.lyb.change.dao;

import java.util.List;

/**
 * Created by Administrator on 2016/11/18.
 */
public interface BaseDao<T> {

    public int insertRecord(T t);

    public int deleteRecordByID(int primaryKey);

    public int updateRecord(T t);

    public T getRecord(int primaryKey);

    public List<T> getRecords();

    /**
     * 精确查询
     *
     * @param t
     * @return
     */
    public List<T> getRecordByCondition(T t);

    /**
     * 模糊查询
     *
     * @param t
     * @return
     */
    public List<T> getRecordByVague(T t);
}
